'use strict';

var fs = require('fs');
var filesTest = {
    write : function() {
        fs.readFile('say.js', function(err, data) {
            if(err) {
                console.log(err);
            } else {
                console.log(data);
                data += '/n sb sb';
                console.log(data);
                fs.writeFileSync('sayModify.js', data);
                console.log('modify file over');
            }
        });
    }
};

module.exports = filesTest;
 


